# 使用构造方法跟成员变量进行赋值
class Student():
    name = None
    age = None

    def __init__(self, name, age):
        self.name = name
        self.age = age


stu1 = Student("李华", 18)
print(stu1.name)
print(stu1.age)